package org.ihelpuoo.orm.objs;

import java.util.Calendar;

import org.ihelpuoo.lang.ObjectUtils;

public class Abc
{
	private int			id;
	private String		name;
	private Calendar	createTime;
	private int			age;

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Calendar getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Calendar createTime)
	{
		this.createTime = createTime;
	}

	public int getAge()
	{
		return age;
	}

	public void setAge(int age)
	{
		this.age = age;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (null == obj)
			return false;
		if (super.equals(obj))
			return true;
		if (id != ((Abc)obj).id)
			return false;
		if (!name.equals(((Abc)obj).name))
			return false;
		if (!ObjectUtils.castDateToDateTimeString(this.getCreateTime().getTime()).equals(
				ObjectUtils.castDateToDateTimeString(((Abc)obj).getCreateTime().getTime())))
			return false;
		return true;
	}
}
